<include file='public/_meta'>

<div class="page-container">
	<form action="{:url('register')}" method="post" enctype="multipart/form-data" class="form form-horizontal" id="form-type-add">
		<input type="hidden" name="data" value="{$data}">
		<div class="row cl mb-30">
			<div class="formControls col-xs-6 col-sm-6">   
		 		<h3 class="ml-50">已经选择<span class="c-primary ml-20">
		 			({:substr_count($data,',')+1})</span>个设备号</h3>
			</div>
		</div>
		<div class="row cl">
			<div class="col-9 col-offset-2">
				<input class="btn btn-primary radius" type="submit" value="&nbsp;&nbsp;确认提交&nbsp;&nbsp;">
			</div>
		</div>
	</form>
</div>

<!--_footer 作为公共模版分离出去-->
<include file='public/_footer'>
<!--/_footer 作为公共模版分离出去-->

<!--请在下方写此页面业务相关的脚本--> 
<script type="text/javascript" src="__PUBLIC__/lib/My97DatePicker/4.8/WdatePicker.js"></script>
<script type="text/javascript" src="__PUBLIC__/lib/jquery.validation/1.14.0/jquery.validate.js"></script> 
<script type="text/javascript" src="__PUBLIC__/lib/jquery.validation/1.14.0/validate-methods.js"></script> 
<script type="text/javascript" src="__PUBLIC__/lib/jquery.validation/1.14.0/messages_zh.js"></script>
<script type="text/javascript">
$(function(){
	$("#form-type-add").validate({
		onkeyup:false,
		focusCleanup:true,
		submitHandler:function(form){
			$(form).ajaxSubmit({
				dataType: 'json',
				success: function(data) { 
				 // 	var index = parent.layer.getFrameIndex(window.name);
					// //parent.$('.btn-refresh').click();
	    //             if(data['result']==0){
	                
	    //             	layer.msg('注册成功', {icon:6,time:1000},function(){

					// 		parent.location.href = '{:url('index/terminal/index')}';

	    //             	});
	    //             }
	    //             else{
	    //             	layer.msg(data['msg']);
	    //             }
            	},
            	error:function(data){
					layer.msg('网络错误');
            	},
			});
		}
	});
});



</script> 
<!--/请在上方写此页面业务相关的脚本-->